#include <stdio.h>

long e = 0, pre = 10000;
long f[10000];

int main() {
    int len = sizeof(f) / sizeof(f[0]);
    for (int b = 0; b < len; b++)f[b] = pre / 5;
    for (long c = len; c > 0; c -= 14) {
        int flag = 0;
        for (int b = c; b > 0; b--) {
            int s = 2 * b - 1;
            flag = flag * b + f[b] * pre;
            f[b] = flag % s;
            flag = flag / s;
        }
        int pi = e + flag / pre;
        printf("%d", pi);
        e = flag % pre;
    }
    return 0;
}